package effective_java.design_pattern.decorator;

/**
 * 炒饭
 *
 * @author Verlet
 * @date 2023-09-06 01:24
 */
public class FriedRice extends FastFood{

    public FriedRice() {
        super(10,"炒饭");
    }

    public FriedRice(float price, String desc) {
        super(price, desc);
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
